package com.jgoodies.looks.common;

import javax.swing.*;
import javax.swing.plaf.ComponentUI;

/**
 * Created by IntelliJ IDEA.
 * User: babitsky.viacheslav
 * Date: 06.03.2008
 * Time: 16:44:47
 */
public class ExtBasicCheckBoxMenuItemNotCloseUI extends ExtBasicRadioButtonMenuItemUI {

    protected String getPropertyPrefix() {
        return "CheckBoxMenuItem";
    }


    public static ComponentUI createUI(JComponent b) {
        return new ExtBasicCheckBoxMenuItemNotCloseUI();
    }

    /**
     * Call this method when a menu item is to be activated.
     * This method handles some of the details of menu item activation
     * such as clearing the selected path and messaging the
     * JMenuItem's doClick() method.
     *
     * @param msm A MenuSelectionManager. The visual feedback and
     *            internal bookkeeping tasks are delegated to
     *            this MenuSelectionManager. If <code>null</code> is
     *            passed as this argument, the
     *            <code>MenuSelectionManager.defaultManager</code> is
     *            used.
     * @see javax.swing.MenuSelectionManager
     * @see javax.swing.JMenuItem#doClick(int)
     * @since 1.4
     */
    protected void doClick(MenuSelectionManager msm) {
        menuItem.doClick(0);
    }
}
